Which one of the following statements protects against CSRF attacks?

Joomla - Online Exam Test Papers | Joomla - MCQs[multiple choice questions and answers ] | Joomla - Mock Test Papers | Joomla - Practice Papers | Joomla - Sample Test Papers |

Question:
Which one of the following statements protects against CSRF attacks?

1.<?php echo JHTML::_( 'form.token' );?>

2.<?php echo JRoute::_( 'index.php?option=com_example&controller=object1&task=save&'. JHTML::_( 'form.token' ) .'=1' );?>

3.<?php echo JUtility::getToken();?>

4.&lt;input type="hidden" name="&lt;?php echo JUtility::getToken();?&gt;" value="1" /&gt;<br>

Posted Date:-2022-10-12 11:13:48


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!